package android.slc.sys.repository.service;

import android.slc.appbase.api.slc.callback.po.SlcEntity;
import android.slc.appbase.api.slc.config.ApiConfig;
import android.slc.extras.user.entity.LoginResult;

import java.util.Map;

import io.reactivex.rxjava3.core.Observable;
import me.jessyan.retrofiturlmanager.RetrofitUrlManager;
import retrofit2.http.Body;
import retrofit2.http.Headers;
import retrofit2.http.POST;

/**
 * @author slc
 * @date 2020-07-14 17:51
 */
public interface SearchService {
    /**
     * 测试用户登录用户登录
     *
     * @return
     */
    @Headers({RetrofitUrlManager.DOMAIN_NAME_HEADER + ApiConfig.Value.API_DOMAIN_NAME})
    @POST("blade-auth/oauth/token")
    Observable<SlcEntity<LoginResult>> testLogin(@Body Map<String, Object> data);
}